package main

import (
	"fmt"

	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/dialog"
)

type editor struct {	
	uri  string	
	win        fyne.Window
}

func (e *editor) fileOpen() {
	
	open := dialog.NewFileOpen(func(read fyne.URIReadCloser, err error) {
		e.uri = read.URI().String()
	}, e.win)
	open.Show()
}


func (e *editor) fileTrans() {
	filename := e.Trans()
	dialog.ShowInformation("Trans work ", fmt.Sprintf("finished, check the new excel with name: %s", filename), 
	e.win)
}